<%@page import="beans.FAQbean"%>
<%@page import="java.util.List"%>
<%@page import="dao.FAQ"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        
        <% 
            String id= request.getParameter("id");
            FAQ faqB = new FAQ();
            List<FAQbean> listF = faqB.showFAQById(id);
        %>
        
         <%  for (FAQbean FBean : listF) {
             
            %>
            <h2> <%= FBean.getFaq_question()%> </h2> 
            <p><%= FBean.getFaq_answer()%>    </p>        
           <%  } %>
    </body>
</html>
